package com.game.modular.game.battle.process.battleStage.actionPhase.actionPhase2.item;

import com.game.modular.game.battle.panel.Battle;
import com.game.modular.game.battle.panel.skill.PanelInfoService;
import com.game.modular.game.battle.panel.skillEffect.PvpSkillEffect;
import com.game.modular.game.battle.process.skillEffectHandle.skillEffectSelect.SkillEffectTriggerHandle;
import com.game.modular.gameCore.cultivate.domain.CoreSkill;
import com.game.modular.gameCore.cultivate.domain.CoreSkillStar;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 4-4 调用->技能效果处理器->技能效果触发器
 */
@Slf4j
@Service
@Component
public class ReleaseSkillService4 {
    @Resource
    private PanelInfoService panelInfoService;

    /**
     * 4-4
     * 技能效果尝试触发
     */
    public List<PvpSkillEffect> apply(
            Long battleId,
            CoreSkill coreSkill,
            CoreSkillStar coreSkillStar,
            @NotNull(message = "(单个)新技能-技能效果列表") List<PvpSkillEffect> newSkillEffectList
    ) {
        return SkillEffectTriggerHandle.applyNewSkillEffect(newSkillEffectList);
    }
}
